#ifndef SERVER_H
#define SERVER_H
#include <Arduino.h>
#define FS_NO_GLOBALS
#include <FS.h>
#include <LittleFS.h>
#define ELEGANTOTA_USE_ASYNC_WEBSERVER 1
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include "config.h"
// WiFi connection info
extern const char *ssid;
extern const char *password;

// Create an AsyncWebServer object on port 80
extern AsyncWebServer server;

// Function prototypes
void setServer();
void handleRoot(AsyncWebServerRequest *request);
void handleMoveTo(AsyncWebServerRequest *request);

#endif // SERVER_H
